import request from '@/utils/request'

// 查询信用度信息管理列表
export function listLibrarycredit(query) {
  return request({
    url: '/librarysystem/librarycredit/list',
    method: 'get',
    params: query
  })
}

// 查询信用度信息管理详细
export function getLibrarycredit(creditId) {
  return request({
    url: '/librarysystem/librarycredit/' + creditId,
    method: 'get'
  })
}

// 新增信用度信息管理
export function addLibrarycredit(data) {
  return request({
    url: '/librarysystem/librarycredit',
    method: 'post',
    data: data
  })
}

// 修改信用度信息管理
export function updateLibrarycredit(data) {
  return request({
    url: '/librarysystem/librarycredit',
    method: 'put',
    data: data
  })
}

// 删除信用度信息管理
export function delLibrarycredit(creditId) {
  return request({
    url: '/librarysystem/librarycredit/' + creditId,
    method: 'delete'
  })
}
